package com.daguchuangyi.erp_android.model.product;

/**
 * Created by lijianjian on 2018/3/30.
 */


import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;

import java.util.ArrayList;
import java.util.List;

public class SimalarProductResult implements Parcelable {

    @SerializedName("damagedProductIds")
    @Expose
    private List<Integer> damagedProductIds = new ArrayList<Integer>();
    @SerializedName("ids")
    @Expose
    private List<Integer> ids = new ArrayList<Integer>();
    public final static Parcelable.Creator<SimalarProductResult> CREATOR = new Creator<SimalarProductResult>() {

        @SuppressWarnings({
                "unchecked"
        })
        public SimalarProductResult createFromParcel(Parcel in) {
            return new SimalarProductResult(in);
        }

        public SimalarProductResult[] newArray(int size) {
            return (new SimalarProductResult[size]);
        }

    };

    protected SimalarProductResult(Parcel in) {
        in.readList(this.damagedProductIds, (java.lang.Integer.class.getClassLoader()));
        in.readList(this.ids, (java.lang.Integer.class.getClassLoader()));
    }

    public SimalarProductResult() {
    }

    public List<Integer> getDamagedProductIds() {
        return damagedProductIds;
    }

    public void setDamagedProductIds(List<Integer> damagedProductIds) {
        this.damagedProductIds = damagedProductIds;
    }

    public List<Integer> getIds() {
        return ids;
    }

    public void setIds(List<Integer> ids) {
        this.ids = ids;
    }

    public void writeToParcel(Parcel dest, int flags) {
        dest.writeList(damagedProductIds);
        dest.writeList(ids);
    }

    public int describeContents() {
        return 0;
    }

}
